﻿//
// Created by Grishul Eugeny
//
// See license in License.txt
//

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace NCommander
{
	[DebuggerStepThrough]
	internal class ActionInvoker : IDisposable
	{
		public Action _action;

		public ActionInvoker( Action action )
		{
			_action = action;
		}

		#region IDisposable Members

		public void Dispose()
		{
			_action();
		}

		#endregion
	}
}
